<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:task="http://www.springframework.org/schema/task"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-4.1.xsd

				http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task-4.1.xsd">

	<!--
	<context:load-time-weaver aspectj-weaving="on"/>
	-->

	<task:annotation-driven executor="executor"  exception-handler="exceptionHandler" scheduler="scheduler"/>

	<task:scheduled-tasks scheduler="scheduler">
		<task:scheduled ref="target" method="test" fixed-rate="1000"/>
	</task:scheduled-tasks>

	<bean id="executor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
		<property name="threadNamePrefix" value="testExecutor"/>
	</bean>

	<bean id="exceptionHandler"
		  class="org.springframework.scheduling.annotation.TestableAsyncUncaughtExceptionHandler"/>

	<bean id="scheduler" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler">
		<property name="threadNamePrefix" value="testScheduler"/>
	</bean>

	<bean id="target" class="org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessorTests$TestBean"/>

</beans>
